package com.jinmdz.fmis.dao.model.coldstorage;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jinmdz.fmis.dao.base.BaseItem;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 冷藏任务信息
 *
 * @author LiCongLu
 * @date 2020-02-15 9:57
 */
public class ColdStorageItem extends BaseItem {
    /**
     * 业务编码
     */
    private String businessCode;

    /**
     * 冷藏类型编码
     */
    private Integer equipmentTypeCode;

    /**
     * 冷藏类型编码
     */
    private String equipmentType;

    /**
     * 冷藏设备外键
     */
    private Integer equipmentId;

    /**
     * 预约入藏时间
     */
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date appointmentInTime;

    /**
     * 预约出藏时间
     */
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date appointmentOutTime;

    /**
     * 实际入藏时间
     */
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date realityInTime;

    /**
     * 实际出藏时间
     */
    @JsonFormat(pattern = yyyy_MM_dd_HH_mm)
    private Date realityOutTime;

    /**
     * 流程状态
     */
    private Integer processStateCode;

    /**
     * 规则数量
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private BigDecimal ruleNumber;

    /**
     * 规则单位
     */
    private String ruleUnit;

    /**
     * 规则编码
     */
    private String ruleCode;

    /**
     * 规则备注
     */
    private String ruleRemark;

    /**
     * 备注
     */
    private String remark;

    /**
     * 随机码
     */
    private String randomCode;

    /**
     * 费用外键
     */
    private Integer chargeId;

    public String getBusinessCode() {
        return businessCode;
    }

    public ColdStorageItem setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
        return this;
    }

    public Integer getEquipmentTypeCode() {
        return equipmentTypeCode;
    }

    public ColdStorageItem setEquipmentTypeCode(Integer equipmentTypeCode) {
        this.equipmentTypeCode = equipmentTypeCode;
        return this;
    }

    public String getEquipmentType() {
        return equipmentType;
    }

    public ColdStorageItem setEquipmentType(String equipmentType) {
        this.equipmentType = equipmentType;
        return this;
    }

    public Integer getEquipmentId() {
        return equipmentId;
    }

    public ColdStorageItem setEquipmentId(Integer equipmentId) {
        this.equipmentId = equipmentId;
        return this;
    }

    public Date getAppointmentInTime() {
        return appointmentInTime;
    }

    public ColdStorageItem setAppointmentInTime(Date appointmentInTime) {
        this.appointmentInTime = appointmentInTime;
        return this;
    }

    public Date getAppointmentOutTime() {
        return appointmentOutTime;
    }

    public ColdStorageItem setAppointmentOutTime(Date appointmentOutTime) {
        this.appointmentOutTime = appointmentOutTime;
        return this;
    }

    public Date getRealityInTime() {
        return realityInTime;
    }

    public ColdStorageItem setRealityInTime(Date realityInTime) {
        this.realityInTime = realityInTime;
        return this;
    }

    public Date getRealityOutTime() {
        return realityOutTime;
    }

    public ColdStorageItem setRealityOutTime(Date realityOutTime) {
        this.realityOutTime = realityOutTime;
        return this;
    }

    public Integer getProcessStateCode() {
        return processStateCode;
    }

    public ColdStorageItem setProcessStateCode(Integer processStateCode) {
        this.processStateCode = processStateCode;
        return this;
    }

    public BigDecimal getRuleNumber() {
        return ruleNumber;
    }

    public ColdStorageItem setRuleNumber(BigDecimal ruleNumber) {
        this.ruleNumber = ruleNumber;
        return this;
    }

    public String getRuleUnit() {
        return ruleUnit;
    }

    public ColdStorageItem setRuleUnit(String ruleUnit) {
        this.ruleUnit = ruleUnit;
        return this;
    }

    public String getRuleCode() {
        return ruleCode;
    }

    public ColdStorageItem setRuleCode(String ruleCode) {
        this.ruleCode = ruleCode;
        return this;
    }

    public String getRuleRemark() {
        return ruleRemark;
    }

    public ColdStorageItem setRuleRemark(String ruleRemark) {
        this.ruleRemark = ruleRemark;
        return this;
    }

    public String getRemark() {
        return remark;
    }

    public ColdStorageItem setRemark(String remark) {
        this.remark = remark;
        return this;
    }

    public String getRandomCode() {
        return randomCode;
    }

    public ColdStorageItem setRandomCode(String randomCode) {
        this.randomCode = randomCode;
        return this;
    }

    public Integer getChargeId() {
        return chargeId;
    }

    public ColdStorageItem setChargeId(Integer chargeId) {
        this.chargeId = chargeId;
        return this;
    }
}
